home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / moonstonemadness.swf / scripts / __Packages / MiniStone.as < prev    next >
Encoding:
Text File  |  2007-09-27  |  629 b   |  30 lines

  1. class MiniStone extends SideScroller.StaticObject
  2. {
  3.    var bObjectBlock;
  4.    var bObjectSpecial;
  5.    function MiniStone(__mcRef, __oLayer)
  6.    {
  7.       super(__mcRef,__oLayer);
  8.       this.bObjectBlock = false;
  9.       this.bObjectSpecial = true;
  10.       this.ParentLayer.doAddListener(this);
  11.    }
  12.    function onHitSpecial(__oRef)
  13.    {
  14.       this.setState("Out");
  15.       this.doLockState();
  16.    }
  17.    function doDestroy()
  18.    {
  19.       this.ParentLayer.doRemoveListener(this);
  20.       super.doDestroy();
  21.    }
  22.    function doOut()
  23.    {
  24.       if(this.isStateComplete())
  25.       {
  26.          this.doDestroy();
  27.       }
  28.    }
  29. }
  30.